package oop;

/**
 * @BelongsProject: ascMaterial
 * @BelongsPackage: oop
 * @Author: Jiang Wenrui
 * @CreateTime: 2023-04-10  20:30
 * @Description:
 * @Version: 1.0
 */
public class Person implements Eat {
    private String name;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println(name + " is eating");
    }
}
